Skip to content

Conversation

sawaymas
Copy link
Member

Mock getCountriesByRegion with vi.mock and add realistic fixtures to test the loading, success, and error states without hitting the real API.

Closes #39

Mock getCountriesByRegion with vi.mock and add realistic fixtures to test the loading, success, and error states without hitting the real API.

Closes #39
@sawaymas sawaymas requested a review from a team as a code owner September 15, 2026 13:14
Copy link
Member

@felixtro felixtro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job!

@sawaymas sawaymas merged commit 29c5f60 into dev Sep 15, 2026
@sawaymas sawaymas deleted the 39-mock-the-rest-api-in-tests branch September 15, 2026 13:19
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants